package com.yeung.exam;

import java.util.Scanner;

public class 穿插字符_58 {
    public static void main(String[] args) {

        String line = new Scanner(System.in).nextLine();
        //chuangpu@whitehouse.com
        String[] split = line.split("@");
        String pre = split[0];
        char[] tmp = {'M', 'A', 'S', 'K'};
        StringBuilder sb = new StringBuilder();
        char[] chars = pre.toCharArray();
        int ind = 0;
        for (int i = 0; i < chars.length; i++) {
            sb.append(chars[i]);
            sb.append(tmp[ind++]);
            if (ind == tmp.length) ind = 0;
        }
        sb.deleteCharAt(sb.length()-1);
        sb.append("@");
        sb.append(split[1]);
        String result="cMhAuSaKnMgApSu@whitehouse.com";
        System.out.println(result);
        System.out.println(sb.toString());

    }
}
